import requests from "./requests";
//获取购物车列表的API
export const reqShopCartList = () => {
  return requests.get("/cart/cartList");
};
//删除购物车的API
export const reqDeleteShopCart = (skuId) => {
  return requests({ url: `/cart/deleteCart/${skuId}`, method: "delete" });
};
//修改商品的选中状态
export const reqUpdateCheckedById = (skuId, isChecked) => {
  return requests.get(`/cart/checkCart/${skuId}/${isChecked}`);
};
